{literal}
    <style type="text/css">
	
		/*****css for all****/
        @import url('../static/admin/css/shippingtime.css');
		
		.action .btn24{
			margin-left: 4px;
			margin-right: 4px;
			float:left;
		}
		.for_editing
		{
			display: none;
		}

    </style>
{/literal}

{include file = "styles/header.tpl"}
<script type="text/javascript" src="js/user/index.js"></script>

<div id="content" class="box">
    <h1>Shipping Time Manager - Locations</h1>
    <form method="post" id="frmLocations" name="frmLocations" action="{$smarty.const.HOST_ADMIN}/shippingtime/importlocation" enctype="multipart/form-data">
        <fieldset>
			<input type="file" name="locations_file" id="locations_file">
            <button type="submit" style="padding:3px;font-size: 10pt;">Import</button>
        </fieldset> 
        <table width="100%">
            <tr>
                <th>Id</th>
                <th>Code</th>
                <th>Province</th>
                <th>Time</th>                
            </tr>
            {foreach  from=$locations key=k item=location}
                <tr>
                    <td>{$location.id}</td>
                    <td>{$location.code}</td>
                    <td>{$location.name}</td>
                    <td>{$location.time}</td>
                </tr>
            {/foreach }
        </table>
    </form>
</div>
<div id="currenttab" class="category_create_edit_user" style="display: none;">
    {literal}
        <script type="text/javascript">
            $(function(){
				//init
				$(".for_editing").hide();		
				$(".btn.reset").hide();
			});				
			});
        </script>
    {/literal}
    {include file = "styles/footer.tpl"}